package com.example.springboot01.service.impl;

import com.example.springboot01.mapper.TUserMapper;
import com.example.springboot01.model.TUser;
import com.example.springboot01.service.TUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TUserServiceImpl implements TUserService {

    @Autowired
    private TUserMapper tUserMapper;

    @Override
    public TUser queryTUserByID(Integer id) {

        return tUserMapper.selectByPrimaryKey(id);
    }

    @Override
    public TUser queryTUserByUserNameAndPassword(TUser tUser) {



        return tUserMapper.queryTUserByUserNameAndPassword(tUser);
    }
}
